import { IsNotEmpty, IsNumber } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateOrderDto {
  @ApiProperty({ description: '商品ID', example: 1 })
  @IsNumber()
  @IsNotEmpty()
  goodsId: number;

  @ApiProperty({ description: '收货地址ID', example: 1 })
  @IsNumber()
  @IsNotEmpty()
  addressId: number;
}
